MessageBox(hWnd, "Unable to load the function 'SPEDT_CheckEdit', progably due to an incompatable version. Please check your system for multiple versions of 'spelledt.dll'.", "Spell setup", MB_ICONSTOP);
else
(LINK_SPEDT_CheckEdit)(hWndEdit); // spell check the edit box
// Free the module and finish
FreeModule(hModSpelledt);
return 0;
case MLC_SETUPEDIT:
// Load the checkedt module, but for a different function.
MessageBox(hWnd, "Unable to load the function 'SPEDT_SetupBox', probably due to an incompatable version. Please check your system for multiple versions of 'spelledt.dll'.", "Spell setup", MB_ICONSTOP);
else
(LINK_SPEDT_SetupBox)(hWnd); // spell check the edit box
// Free the module and finish
FreeModule(hModSpelledt);
return 0;
// Full
case MLC_CHECKWORDS:
// Build the checkword block
CheckWord.wSizeOfBlock = sizeof(CHECKWORD);
CheckWord.hWndParent = hWnd; // window that msg are sent to
CheckWord.hInstance = g.hInst;
CheckWord.lpOptionsDlg = "SPELTEST_OPTIONSBOX";
CheckWord.CheckWordOptions = CWO_ALLOWCHANGE // Do display the box if a word not found
| CWO_CHECKMULTIPLE // Send GETNEXT messages
| CWO_USEOPTIONSHOOK // Do use the options hook
| CWO_USECUSTOMOPTIONSDLG // and use our dialog box
| CWO_NOHELP // No help available
| CWO_UNDO // Undo is handled
| CWO_AUTOSUGGEST; // Please auto suggest
CheckWord.dwCustData = 0; // Index of the first word to check
MessageBox(hWnd, "Unable to load the function 'SPCHK_CheckWord', probably due to an incompatable version. Please check your system for multiple versions of 'spellchk.dll'.", "Spell setup", MB_ICONSTOP);
else
(LINK_SPCHK_CheckWord)(&CheckWord); // spell check the edit box
MessageBox(hWnd, "Unable to load the function 'SPCHK_Options', probably due to an incompatable version. Please check your system for multiple versions of 'spellchk.dll'.", "Spell setup", MB_ICONSTOP);
else
(LINK_SPCHK_Options)(&CheckWord); // spell check the edit box